package com.ruoyi.web.controller.app;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.wb.domain.WbEntAuth;
import com.ruoyi.wb.service.IWbEntAuthService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

/**
 * 企业认证Controller
 *
 * @author ruoyi
 * @date 2024-10-14
 */

@Api(tags="app端-企业认证信息管理")
@RestController
@RequestMapping("/wb/app/wbEntAuth")
public class WbAppEntAuthController extends BaseController {

    @Autowired
    private IWbEntAuthService wbEntAuthService;

    @ApiOperation("查询客户信息")
    @GetMapping("/selectClientInfoPage")
    public TableDataInfo selectClientInfoPage(WbEntAuth wbEntAuth) {
        startPage();
        SysUser user = SecurityUtils.getLoginUser().getUser();
        List<WbEntAuth> list = wbEntAuthService.selectClientInfoPage(wbEntAuth,user.getUserId());
        return getDataTable(list);
    }
}